package com.jinsi.service.ylt;

import com.jinsi.pojo.SyDiscountsIssuance;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @ClassName UserCouponService
 * @Content 用户优惠券业务层
 * @Author 姚龙腾
 * @Date 2022/10/12 11:53
 */
public interface UserCouponService {

    /**
     * 获取所有用户优惠劵信息
     * @param userAccount
     * @param userName
     * @return List<SyDiscountsIssuance>
     */
    List<SyDiscountsIssuance> getAll(String userAccount, String userName);


    /**
     * 获取优惠劵剩余数量
     * @param couponArray
     * @param userArrayLength
     * @return List<Integer>
     */
    List<Integer> getCouponNum(String[] couponArray, Integer userArrayLength);

}
